using UnityEngine;
using UnityEditor;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class ParseCapsuleCollider : ParseObjectHandle<CapsuleCollider>
{
    public override void Prase(ExportSetting ExportSetting, CapsuleCollider obj, JArray jArray)
    {
        var ccCapsuleCollider = ExportSetting.CocosObjectConfig["cc.CapsuleCollider"].DeepClone();
        ccCapsuleCollider["_center"] = AssetHelper.TransforCCObject(obj.center);
        ccCapsuleCollider["_center"]["x"] = -(float)ccCapsuleCollider["_center"]["x"];
        ccCapsuleCollider["_radius"] = obj.radius;
        ccCapsuleCollider["_isTrigger"] = obj.isTrigger;
        ccCapsuleCollider["_direction"] = obj.direction;
        jArray.Add(ccCapsuleCollider);
    }
}
